<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[time]" id="c-time" class="form-control" data-rule="required" data-validator="required" value="" placeholder="时间段格式为 8:00 - 8:30">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Timetable_cn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[timetable_cn]" id="c-timetable_cn" class="form-control" data-rule="required" value="" data-validator="required">
        </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">{:__('Timetable_en')}:</label>
    <div class="col-xs-12 col-sm-8">
        <input type="text" name="row[timetable_en]" id="c-timetable_en" class="form-control" data-rule="required" value="" data-validator="required">
    </div>
</div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Class_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[class_id]" id="c-class_id" data-rule="required" class="form-control selectpicker" data-validator="required">
                {foreach name="classes" item="vo"}
                <option value="{$vo->id}">{$vo->class_name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Teacher_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[teacher_id]" id="c-teacher_id" data-rule="required" class="form-control selectpicker" data-validator="required">
                {foreach name="teachers" item="vo"}
                <option value="{$vo->id}">{$vo->username}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-date" data-rule="required" class="form-control" name="row[date]" type="text" value="{$date}" data-validator="required">
        </div>
    </div>
<!--    <div class="form-group layer-footer">-->
<!--        <label class="control-label col-xs-12 col-sm-2"></label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>-->
<!--            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
<!--        </div>-->
<!--    </div>-->
</form>
